*Replication File for The Long-term Effects of COVID-19 on Political Science Teaching* 
*Limited Replication Data for Deidentified models*
*These limited models show the same substantive results as the full models, but the dataset has limited variables,
*to protect the identity of the respondents. 

log using "Long Term Effects of Online Teaching, Limited Model Log File for Replication.smcl", replace

import excel "COVIDlongrun_limited replication data.xlsx", sheet("COVIDlongrun_limited replication data") firstrow case(lower) allstring

tab currentenurestatus
gen numerictenure=.
replace numerictenure=1 if currentenurestatus=="Not on the tenure-track"
replace numerictenure=2 if currentenurestatus=="Tenure-track"
replace numerictenure=3 if currentenurestatus=="Tenured"
tab numerictenure

*institutional type* 
describe currentinstitutionchoice
tab currentinstitutionchoice
encode currentinstitutionchoice, generate (currentinstitutionchoice2)
tab currentinstitutionchoice2 
tab currentinstitutionchoice2, nolabel 
*dummy for if they are at a phd granting institution* 
generate phdinstitution = currentinstitutionchoice2==6
tab phdinstitution

*first generation*
describe firstgen
tab firstgen
encode firstgen, generate (firstgen2)
tab firstgen2, nolabel
*1=first in your immediate family to complete grad school
*2=first in your immediate family to complete grad school and first to teach in a US university 
*3=first in your immediate family to graduate from a four-year university
*4=first in your immediate family to graduate from a four-year university, and first in family to complete grad school
*5=first in your immediate family to graduate from a four-year university, and first in family to complete grad school, and first to teach in a US univesrity 
*6=first in your immediate family to graduate from high school
*7=first in your immediate family to graduate from high school, go to college, complete grad school, and teach
*8=first in your family to teach in a US university
*9=n/a 
*10=none of the above describe me
*11=unsure, prefer not to answer

*creating a first gen dummy, based on traditional definition of no parents graduating from college* 
generate firstgencollege=firstgen2
recode firstgencollege 1=15 3=1 4=1 5=1 6=1 7=1 
recode firstgencollege 8=0 15=0 2=0 9=. 10=0 11=.
tab firstgencollege
*25% of our respondents are first gen* 

*gender identity* 
describe currentgenderidentitychoice
tab currentgenderidentitychoice
encode currentgenderidentitychoice, generate (currentgenderidentitychoice2)
tab currentgenderidentitychoice2, nolabel
*1=queer, 2=man, 3=n/a, 4=other-only one picked this, 5=woman

tab currentgenderidentitychoice2
generate female=currentgenderidentitychoice2
recode female 1=0 2=0 3=0 4=0
recode female 5=1
tab female

*teaching online classes* 
describe covidteachinglongrun4
tab covidteachinglongrun4
encode covidteachinglongrun4, generate (covidteachinglongrun4b)
tab covidteachinglongrun4b, nolabel

*current coding* 
*after, 1
*before, 2
*before and after, 3
*before, during, 4
*before, during, and after, 5
*during, 6
*during and after, 7 
*na, 8
*not true for me, no online teaching, 9

generate covidnewtoonline=covidteachinglongrun4b
recode covidnewtoonline 1=0 2=0 3=0 4=0 5=0 9=0 8=.
recode covidnewtoonline 6=1 7=1
tab covidnewtoonline

*before COVID did you talk with students about person problems* 
describe covidteachinglongrun13
tab covidteachinglongrun13
encode covidteachinglongrun13, generate (covidteachinglongrun13b)
tab covidteachinglongrun13b, nolabel

*na, 1, .
*never, 2, 1
*often, 3, 4
*rarely, 4, 2
*sometimes, 5, 3

generate talkprobbeforecovid=covidteachinglongrun13b
recode talkprobbeforecovid 1=. 2=10 3=11 4=12 5=13 
recode  talkprobbeforecovid 10=1 11=4 12=2 13=3
tab talkprobbeforecovid 

*During COVID do you talk with students about person problems* 
describe covidteachinglongrun14
tab covidteachinglongrun14
encode covidteachinglongrun14, generate (covidteachinglongrun14b)
tab covidteachinglongrun14b, nolabel

*na, 1, .
*never, 2, 1
*often, 3, 4
*rarely, 4, 2
*sometimes, 5, 3

generate talkprobduringcovid=covidteachinglongrun14b
recode talkprobduringcovid 1=. 2=10 3=11 4=12 5=13 
recode  talkprobduringcovid 10=1 11=4 12=2 13=3
tab talkprobduringcovid 

*online classes require more work from the teacher* 
describe covidteachinglongrun19
tab covidteachinglongrun19
encode covidteachinglongrun19, generate (covidteachinglongrun19b)
tab covidteachinglongrun19b, nolabel

*na, 1, .
*neither agree nor disagree, 2, 3
*somewhat agree, 3, 4
*somewhat disagree, 4, 2
*strongly agree, 5, 5
*strongly disagree, 6, 1

generate onlinemoreworktoteach=covidteachinglongrun19b
recode onlinemoreworktoteach 1=. 2=10 3=11 4=12 6=14
recode  onlinemoreworktoteach 10=3 11=4 12=2 14=1
tab onlinemoreworktoteach 

*online classes require more work for the students* 
describe covidteachinglongrun20
tab covidteachinglongrun20
encode covidteachinglongrun20, generate (covidteachinglongrun20b)
tab covidteachinglongrun20b, nolabel

generate onlinemoreworktotake=covidteachinglongrun20b
recode onlinemoreworktotake 1=. 2=10 3=11 4=12 6=14
recode  onlinemoreworktotake 10=3 11=4 12=2 14=1
tab onlinemoreworktotake 

*It is more difficult to do experiential learning in online classes* 
describe covidteachinglongrun21
tab covidteachinglongrun21
encode covidteachinglongrun21, generate (covidteachinglongrun21b)
tab covidteachinglongrun21b, nolabel

generate activeonlinehard=covidteachinglongrun21b
recode activeonlinehard 1=. 2=10 3=11 4=12 6=14
recode  activeonlinehard 10=3 11=4 12=2 14=1
tab activeonlinehard 

*Students are more likely to cheat in online classes* 
describe covidteachinglongrun22
tab covidteachinglongrun22
encode covidteachinglongrun22, generate (covidteachinglongrun22b)
tab covidteachinglongrun22b, nolabel

generate cheatingcommononline=covidteachinglongrun22b
recode cheatingcommononline 1=. 2=10 3=11 4=12 6=14
recode  cheatingcommononline 10=3 11=4 12=2 14=1
tab cheatingcommononline 

*It is important for students to keep their cameras on when holding class over video* 
describe covidteachinglongrun23
tab covidteachinglongrun23
encode covidteachinglongrun23, generate (covidteachinglongrun23b)
tab covidteachinglongrun23b, nolabel

generate camerason=covidteachinglongrun23b
recode camerason 1=. 2=10 3=11 4=12 6=14
recode  camerason 10=3 11=4 12=2 14=1
tab camerason 

*I don’t think it’s possible to replicate the classroom community feeling in an online environment.* 
describe covidteachinglongrun24
tab covidteachinglongrun24
encode covidteachinglongrun24, generate (covidteachinglongrun24b)
tab covidteachinglongrun24b, nolabel

generate nocommunityonline=covidteachinglongrun24b
recode nocommunityonline 1=. 2=10 3=11 4=12 6=14
recode  nocommunityonline 10=3 11=4 12=2 14=1
tab nocommunityonline 

*I enjoy talking with my students in online discussion boards.* 
describe covidteachinglongrun25
tab covidteachinglongrun25
encode covidteachinglongrun25, generate (covidteachinglongrun25b)
tab covidteachinglongrun25b, nolabel

generate likedissboards=covidteachinglongrun25b
recode likedissboards 1=. 2=10 3=11 4=12 6=14
recode  likedissboards 10=3 11=4 12=2 14=1
tab likedissboards 
revrs likedissboards
tab revlikedissboards

*Online classes are helpful for increasing access to higher education.* 
describe covidteachinglongrun26
tab covidteachinglongrun26
encode covidteachinglongrun26, generate (covidteachinglongrun26b)
tab covidteachinglongrun26b, nolabel

generate onlineincreasesaccess=covidteachinglongrun26b
recode onlineincreasesaccess 1=. 2=10 3=11 4=12 6=14
recode  onlineincreasesaccess 10=3 11=4 12=2 14=1
tab onlineincreasesaccess 
revrs onlineincreasesaccess
tab revonlineincreasesaccess

*Summary measure of negative views of online classes* 
generate negviewofonline=nocommunityonline+cheatingcommononline+activeonlinehard+onlinemoreworktotake+onlinemoreworktoteach+revonlineincreasesaccess+revlikedissboards
tab negviewofonline

*how well supported by your department during covid* 
describe covidteachinglongrun27
tab covidteachinglongrun27
encode covidteachinglongrun27, generate (covidteachinglongrun27b)
tab covidteachinglongrun27b, nolabel

*moderately supported, 1, 4
*na, 2, .
*neither, 3
*not at all, 4, 1
*not very well, 5, 2 
*very well supported, 6, 5

generate deptsupport=covidteachinglongrun27b
recode deptsupport 1=10 2=. 4=11 5=12 6=13
recode  deptsupport 10=4 11=1 12=2 13=5
tab deptsupport 

*how well supported by your university during covid* 
describe covidteachinglongrun28
tab covidteachinglongrun28
encode covidteachinglongrun28, generate (covidteachinglongrun28b)
tab covidteachinglongrun28b, nolabel

generate unisupport=covidteachinglongrun28b
recode unisupport 1=10 2=. 4=11 5=12 6=13
recode  unisupport 10=4 11=1 12=2 13=5
tab unisupport 

*how well supported by APSA during covid* 
describe covidteachinglongrun29
tab covidteachinglongrun29
encode covidteachinglongrun29, generate (covidteachinglongrun29b)
tab covidteachinglongrun29b, nolabel

generate apsasupport=covidteachinglongrun29b
recode apsasupport 1=10 2=. 4=11 5=12 6=13
recode  apsasupport 10=4 11=1 12=2 13=5
tab apsasupport 

revrs deptsupport 
revrs unisupport 
revrs apsasupport

gen support = revdeptsupport + revunisupport + revapsasupport
tab support 

*Models*

*To replicate Table 1* 
regress negviewofonline covidnewtoonline phdinstitution female  firstgencollege  support  numerictenure 

*To replicate Table 3* 
ologit talkprobduringcovid covidnewtoonline phdinstitution female  firstgencollege  support  numerictenure 
ologit talkprobbeforecovid covidnewtoonline phdinstitution female  firstgencollege  support  numerictenure 

log close 
